/**
 * 21/02/2014
 * 
 * Issuetype
 */
package org.cuatrovientos.erp.model;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 * Pojo class. Model of Issuetype.
 * @author Javier Tejedor
 */
public class Issuetype {
	
	@Size(min=1,message="{issuetype.id.error}")
	private int id;
	
	@NotNull
	@Size(min=1,max=50,message="{issuetype.name.error}")
	private String name;
	
	@Size(min=1,max=100,message="{issuetype.description.error}")
	private String description;
	
	/**
	 * Constructor
	 */
	public Issuetype(){
		
	}

	/**
	 * @param id
	 * @param name
	 * @param description
	 */
	public Issuetype(int id, String name, String description) {
		super();
		this.id = id;
		this.name = name;
		this.description = description;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	@Override
	public String toString() {
		return "Issuetype [id=" + id + ", name=" + name + ", description="
				+ description + "]";
	}

}
